cody - HTMLify profile

cody's Profile Picture

cody

4049 Files

501141 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/215 - Lorem Ipsum Generator

style.css cody/swapnilsparsh/30DaysOfJavaScript/215 - Lorem Ipsum Generator/style.css
83 Views
0 Comments
* {
box-sizing: border-box;
margin: 0;
padding: 0;

}

body {
index.html cody/swapnilsparsh/30DaysOfJavaScript/215 - Lorem Ipsum Generator/index.html
228 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lorem Ipsum generator</title>
<link rel="shortcut icon" href="../30DaysOfJavaScript/assets/favicon.png" type="image/x-icon">
<!-- font awesome cdn link -->
script.js cody/swapnilsparsh/30DaysOfJavaScript/215 - Lorem Ipsum Generator/script.js
143 Views
0 Comments
const form = document.querySelector('#form')
const copy = document.querySelector('.copy')

// handling form
form.addEventListener('submit', (e) => {
e.preventDefault()
const size = parseInt(form.input.value);
document.querySelector('.text-section').innerHTML = loremIpsum(size);